﻿<%@ Page Title="" Language="C#" MasterPageFile="~/App_Master/AdminMaster2.master" AutoEventWireup="true" CodeFile="my_passw_edit.aspx.cs" Inherits="my_passw_edit" %>


<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
<script src="../App_Themes/js/calendar3.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
 <div class="apply">
  <div class="apply2">
 <%--   <uc_left_m:left_menu ID="left_m2" runat="server" />--%>
            <div class="myul_r">
                <div class="mod_admin_main">
                    <div class="hd_admin">
                        <strong>管理员密码修改</strong></div>
                    <div class="admin_tab_box1 top20">
                        <div class="b_line">                                
<input type="hidden" id="long_eid" name="long_eid" value="<%=long_eid%>" />   
<p><div class="top2"><label class="bold green1">原密码：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </label>
<input id="txtoldpw" name="txtoldpw" style="width:200px;" type="password" maxlength="20" value="" /></div></p>
<p><div class="top2"><label class="bold green1">新密码：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </label>
<input  maxlength="20" name="userpass" id="userpass" type="password" style="width:200px;"/>
</div></p>
<p><div class="top2"><label class="bold green1">重复新密码：</label><input  maxlength="20" name="userpass2" id="userpass2" type="password" style="width:200px;"/>
</div></p> 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a onclick="javascript:checkFrmSubmit();">保存</a>
</div>
                    </div>
                </div>
            </div>
            <div class="clear">
            </div>
        </div>
        <div class="clear">
        </div>
    </div>
    <script language="javascript" type="text/javascript">
        function checkFrmSubmit() {
            if (jQuery('#txtoldpw').val().length < 6) {
                alert("原密码过短!"); return;
            }
            else if (jQuery('#userpass').val().length < 6) {
                alert("新密码过短!"); return;
            }
            else if (jQuery('#userpass2').val().length < 6) {
                alert("重复新密码过短!"); return;
            } 
            else if (jQuery('#userpass2').val().length < 6) {
                alert("重复新密码过短!"); return;
            }
            else if (jQuery('#userpass2').val().length != jQuery('#userpass').val().length) {
                alert("重复新密码不正确!");
                return;
            }
            else if (jQuery('#userpass2').val() != jQuery('#userpass').val()) {
                alert("重复新密码不正确!");
                return;
            }
            else {
                var yuanpass = jQuery('#txtoldpw').val();
                var rpass = jQuery('#userpass').val();
                jQuery('form').attr("action", "/Ajax/Otsql.ashx?t=change_adminps&jps=" + yuanpass + "&ps=" + rpass).submit(); 
            }
        }
    </script>
</asp:Content>